/* Exception */
object test2 {
	def main():Unit = { 
		try{
			println((new ExceptionTest()).initMyVar(0));
		}
		catch(e: ToolException){
		    //e.setMessage("bob");
		    println(e.setMessage("bob").getMessage());
			//throw new ToolException().setMessage("bob");
		}
	}
}

class ExceptionTest {
	var myVar:Int;
	var myTab:Int[];
	var myClass2:c2;

	def initMyVar(myVar2:Int):Int throws ToolException = {
		try{
			throw new ToolException().setMessage("ARF");
		}catch(e: ToolException){
			println(e.getMessage());
			throw e;
		}

		return 1;
	}
}

class c2 extends ExceptionTest {
}
